package com.xyh.transaction.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExcelGoodsVo {

    @ExcelProperty("商品名字")
    private String name;

    @ColumnWidth(20)
    @ExcelProperty(value = "商品图片")
    private byte[] picture;

    @ExcelProperty("商品编码")
    private String code;

    @ExcelProperty("商品价格")
    private BigDecimal price;

    @ExcelProperty("成色")
    private String condition;

    @ExcelProperty("库存")
    private Integer stock;

    @ExcelProperty("商品分类")
    private String categoryName;

//    @ExcelIgnore
//    @ExcelProperty("创建时间")
//    private String createTime;

//    @ExcelProperty("更新时间")
//    private String updateTime;

    @ExcelProperty("商品描述")
    private String des;

}
